package cn.suse.android.share;

public class Constant {

    public static final int RESULT_FAILED_REQUEST_ERR = -7;
    public static final int RESULT_FAILED_ENCODER_ERR = -6;
    public static final int RESULT_CLASS_CAST_ERR = -5;
    public static final int RESULT_FAILED_MALFORMEDURL_ERR = -4;
    public static final int RESULT_FAILED_JSON_PARSE_ERR = -3;
    public static final int RESULT_FAILED_ARG_ERR = -2;
    public static final int RESULT_FAILED_NETWORK_ERR = -1;
    public static final int RESULT_FAILED = 0;
    public static final int RESULT_OK = 1;
    public static final int RESULT_GET_FRIENDS_OK = 2;
    public static final int RESULT_GET_USERINFO_OK = 3;
    public static final int RESULT_POST_RECORD_OK = 4;
    public static final int RESULT_POST_RECORD_FAILED = 5;
    
	public final static int LISTVIEW_ACTION_INIT = 0x01;
	public final static int LISTVIEW_ACTION_REFRESH = 0x02;
	public final static int LISTVIEW_ACTION_SCROLL = 0x03;
	public final static int LISTVIEW_ACTION_CHANGE_CATALOG = 0x04;
	
	public final static int LISTVIEW_DATA_MORE = 0x01;
	public final static int LISTVIEW_DATA_LOADING = 0x02;
	public final static int LISTVIEW_DATA_FULL = 0x03;
	public final static int LISTVIEW_DATA_EMPTY = 0x04;
	
	public final static int LISTVIEW_DATATYPE_REPASTE = 0x01;
	public final static int LISTVIEW_DATATYPE_BLOG = 0x02;
	public final static int LISTVIEW_DATATYPE_POST = 0x03;
	public final static int LISTVIEW_DATATYPE_TWEET = 0x04;
	public final static int LISTVIEW_DATATYPE_ACTIVE = 0x05;
	public final static int LISTVIEW_DATATYPE_MESSAGE = 0x06;
	public final static int LISTVIEW_DATATYPE_COMMENT = 0x07;
	public final static int LISTVIEW_DATATYPE_FRIEND_RECORD = 0x08;
	
	public final static int REQUEST_CODE_FOR_RESULT = 0x01;
	public final static int REQUEST_CODE_FOR_REPLY = 0x02;
	
	public static final int PAGE_SIZE = 20;
	/** 全局web样式 */
	public final static String WEB_STYLE = "<style>* {font-size:16px;line-height:20px;} p {color:#333;} a {color:#3E62A6;} img {max-width:310px;} " +
			"img.alignleft {float:left;max-width:120px;margin:0 10px 5px 0;border:1px solid #ccc;background:#fff;padding:2px;} " +
			"pre {font-size:9pt;line-height:12pt;font-family:Courier New,Arial;border:1px solid #ddd;border-left:5px solid #6CE26C;background:#f6f6f6;padding:5px;} " +
			"a.tag {font-size:15px;text-decoration:none;background-color:#bbd6f3;border-bottom:2px solid #3E6D8E;border-right:2px solid #7F9FB6;color:#284a7b;margin:2px 2px 2px 0;padding:2px 4px;white-space:nowrap;}</style>";
}
